package com.CI.Login.Model
{
	import com.adobe.cairngorm.model.IModelLocator;

	[Bindable]
	public class ModelLocator implements IModelLocator
	{
		
		private static var instance:ModelLocator;
		public function ModelLocator(enforcer:SingletonEnforcer){
			if(enforcer == null){
				throw new Error("You can have only one ModelLocator");
			}			
		}
		
		public static function getInstance():ModelLocator{
			if(instance == null){
				instance= new ModelLocator(new SingletonEnforcer);
			}
			return instance;
		}
		
		public var workflowState:uint = 0;
		
		public static const LOGIN_SCREEN:uint = 0;
		public static const WELCOME_SCREEN:uint = 1;
	}
}
